<?php
my_component_load('testing' , false);
my_component_load('paging' , false);  
my_component_load('laporan_pensiun' );
$task = isset($_GET['task']) ? $_GET['task'] : "";  
$id = isset( $_GET['id'] ) ? $_GET['id']:  0;
$periode_id = isset( $_GET['periode_id'] ) ? $_GET['periode_id']:  0; 

$modulname = "Personalia _BN_ Waktu Kerja _BN_ Pensiun";
$pagename 	= $modulname;

	if($task == "plaincetak"){
		@ob_end_clean(); 
		echo'<pre>';
		echo print_plain($periode_id);
		exit;
	}elseif($task == "excel"){
		header("Content-Type: application/xls");
		header("Content-Disposition: attachment;filename=data_pensiun_".date('Ymd').".xls");
		echo excel_report($periode_id);
		exit;
}else{
	$content 	=  laporan_pensiun($periode_id);
}
generate_my_web($content, $pagename );